package com.ex.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ex.dao.impl.StudentDao;
import com.ex.model.TStudent;

@Service
public class StudentService {

	@Autowired
	private StudentDao studentDao;
	
	public List<TStudent> query(TStudent student){
		String hql="from TStudent t where t.code=? and t.password=? ";
		Object[] obj={student.getCode(),student.getPassword()};
		
		return studentDao.query(hql, obj);
	}
}
